﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Resources;
using System.Web;

namespace Admin.Common
{
    public static class GetResourceText
    {
        public static string GetValueResource(string valueResource)
        {
            var rm = new ResourceManager("resources.Resource", Assembly.Load("App_GlobalResources"));
            if (!string.IsNullOrEmpty(rm.ToString()))
            {
                return rm.GetString(valueResource);
            }
            return "Không tìm thấy tên nội dung Menu";        
        }
    }
}